<html>
<head><meta charset="utf-8"><title>UI test stderr line numbers · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/UI.20test.20stderr.20line.20numbers.html">UI test stderr line numbers</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="200793344"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/UI%20test%20stderr%20line%20numbers/near/200793344" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/UI.20test.20stderr.20line.20numbers.html#200793344">(Jun 14 2020 at 00:56)</a>:</h4>
<p>Why do UI test stderr files have <code>LL</code> for the line number in the gutter, but not for the line and column number shown after the filename?</p>
<p>For example:</p>
<div class="codehilite"><pre><span></span><code>error: invalid register `invalid`: unknown register
  --&gt; $DIR/issue-72570.rs:9:18
   |
LL |         asm!(&quot;&quot;, in(&quot;invalid&quot;) &quot;&quot;.len());
   |                  ^^^^^^^^^^^^^^^^^^^^^^
</code></pre></div>



<a name="200793698"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/UI%20test%20stderr%20line%20numbers/near/200793698" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/UI.20test.20stderr.20line.20numbers.html#200793698">(Jun 14 2020 at 01:07)</a>:</h4>
<p>To avoid minor changes (like comments being added etc) to the source file from also impacting the expected output template much, maybe?</p>



<a name="200804027"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/UI%20test%20stderr%20line%20numbers/near/200804027" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/UI.20test.20stderr.20line.20numbers.html#200804027">(Jun 14 2020 at 07:10)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/46643">https://github.com/rust-lang/rust/issues/46643</a></p>



<a name="200832182"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/UI%20test%20stderr%20line%20numbers/near/200832182" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/UI.20test.20stderr.20line.20numbers.html#200832182">(Jun 14 2020 at 20:27)</a>:</h4>
<p><span class="user-mention" data-user-id="123856">@Vadim Petrochenkov</span> Is the reason for not anonymizing the line and column in <code>--&gt; $DIR/file.rs:line:column</code> so that one can catch bugs where the compiler prints the wrong line or column?</p>



<a name="200832340"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/UI%20test%20stderr%20line%20numbers/near/200832340" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/UI.20test.20stderr.20line.20numbers.html#200832340">(Jun 14 2020 at 20:30)</a>:</h4>
<p>Not only bugs, but without line numbers <code>.stderr</code> files become entirely unreadable.</p>



<a name="200832362"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/UI%20test%20stderr%20line%20numbers/near/200832362" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/UI.20test.20stderr.20line.20numbers.html#200832362">(Jun 14 2020 at 20:32)</a>:</h4>
<p>It would be great to keep all line numbers for readability, but then we have the diff issues (which harm reviews as well).<br>
It's an evil vs greater evil situation.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>